#include <iostream>
#include "Board.h"

int main ()

{


GameBoard *game = new GameBoard();

while(game->gameOverStatus() != 0)
{
	//player1's turn
	int choice;
	cout << "Player 1's turn.  Please choose an option: \n";
	cout << "1. Attempt to Hit. \n 2. Show GameBoard. \n";
	cin >> choice;

	int x;
	int y;

	if(choice == 1)
	{
		cout << "Please choose the X coordinate. \n";
		cin >> x;
		cout << "Please choose the Y coordinate. \n";
		cin >> y;
		game->makeShot(x, y, 1);
	}
	else if(choice == 2)
	{
		game->getBoardStatus();
	}
	else
	{
		cout << "Please choose again.";
	}

	//Player 2's turn
	cout << "Player 2's turn.  Please choose an option: \n";
		cout << "1. Attempt to Hit. \n 2. Show GameBoard. \n";
		cin >> choice;

		if(choice == 1)
		{
			cout << "Please choose the X coordinate. \n";
			cin >> x;
			cout << "Please choose the Y coordinate. \n";
			cin >> y;
			game->makeShot(x, y, 1);
		}
		else if(choice == 2)
		{
			game->getBoardStatus();
		}
		else
		{
			cout << "Please choose again.";
		}


}








	return 0;
}
